<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>
		
	</head>

	<body>
		<div ng-app="myApp" ng-controller="myCtrl">
			<input type="text" ng-model="name" />
			<div>
				asdf...{{name}}
			</div>
			<input type="button" ng-click="add()" value="点击"></input>
		</div>
		
		<script type="text/javascript">
				var myApp = angular.module("myApp",[]);
				myApp.controller("myCtrl",function($scope){
					$scope.name="helloworld";
					$scope.add = function(){
						$scope.name="";
					}
				})
		</script>
	</body>

</html>